package com.uzai.console.service.feign;

import com.uzai.console.common.UzaiRespVo;
import com.uzai.console.dto.feign.uzaimanage.CdkeyMobileQueryDto;
import com.uzai.console.dto.feign.uzaimanage.SysRunlogWarningDto;
import com.uzai.console.service.feign.impl.UzaiManageFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 悠聊
 * @Auther: liuqi
 * @Date: 2021/11/24 16:22
 * @Description:
 */
@Component
@FeignClient(value = "uzai-manage-server", fallbackFactory = UzaiManageFallbackFactory.class)
public interface UzaiManageFeignService {

    /**
     * 回收未使用卡密
     * @author jitwxs
     * @date 2021/11/29 10:25
     * @param
     * @return com.uzai.console.common.UzaiRespVo<java.lang.String>
     */
    @PostMapping("/cdkeyMobile/updateListByCache")
    UzaiRespVo<Object> cdkeyMobileUpdateListByCache(@RequestBody CdkeyMobileQueryDto cdkeyMobileQueryDto);

    /**
     * 发送官方钉钉群报警消息
     * @author jitwxs
     * @date 2021/11/29 10:25
     * @param
     * @return com.uzai.console.common.UzaiRespVo<Object>
     */
    @PostMapping("/sys/runlog/warning")
    UzaiRespVo<Object> sysRunlogWarning(@RequestBody SysRunlogWarningDto sysRunlogWarningDto);

}
